-- GENERATED SPELL FOR [Putrid Wight] --


function spell0_23992(pUnit, Event) --@Plague Blight,n/a--
pUnit:FullCastSpellOnTarget(43506,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23992', 30309, 1)
end

function spell1_23992(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_23992', 10286, 1)
end

function Sorts_23992(pUnit, Event)
local choix_sorts_23992 = math.random(0, 1)
if choix_sorts_23992 == 0 then
pUnit:RegisterEvent('spell0_23992', 1, 1)
end
if choix_sorts_23992 == 1 then
pUnit:RegisterEvent('spell1_23992', 1, 1)
end
end

function mob23992_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23992', math.random(1500, 3000), 1)
end

function mob23992_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23992_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23992_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23992, 1, 'mob23992_Action')
RegisterUnitEvent(23992, 2, 'mob23992_Leave')
RegisterUnitEvent(23992, 3, 'mob23992_Kill')
RegisterUnitEvent(23992, 4, 'mob23992_Die')
